package com.luhuiguo.gwt.mvp.dispatcher.client;


import com.google.gwt.user.client.rpc.AsyncCallback;
import com.luhuiguo.gwt.mvp.dispatcher.shared.rpc.Action;
import com.luhuiguo.gwt.mvp.dispatcher.shared.rpc.Result;

/**
 * 
 * @author LuHuiguo
 * @version $Id: StandardDispatcherServiceAsync.java 11 2009-12-26 13:39:17Z luhuiguo $
 */
public interface StandardDispatcherServiceAsync {

    /**
     * Executes the specified action.
     * 
     * @param action The action to execute.
     * @param callback The callback to execute once the action completes.
     * 
     * @see com.luhuiguo.gwt.mvp.dispatcher.server.Dispatcher
     */
    void execute( Action<?> action, AsyncCallback<Result> callback );
}
